package com.yeyaomai.dksns.flowis.service.impl;

import java.util.Date;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.yeyaomai.dksns.flowis.dao.TrendAnalysisDayDao;
import com.yeyaomai.dksns.flowis.domain.TrendAnalysisDay;
import com.yeyaomai.dksns.flowis.service.TrendAnalysisDayService;
/**
 * 时段分析按天service层实现
 * @author xiaqin
 *  date:2012-05-09
 */
@Service
public class TrendAnalysisDayServiceImpl implements TrendAnalysisDayService {

	@Resource
	private TrendAnalysisDayDao trendAnalysisDayDao;

	@Override
	public void addTrendAnalysisDay(TrendAnalysisDay trendAnalysisDay) {
		trendAnalysisDayDao.addTrendAnalysisDay(trendAnalysisDay);

	}

	@Override
	public TrendAnalysisDay getTrendAnalysisDayById(long id) {
		return trendAnalysisDayDao.getTrendAnalysisDayById(id);
	}

	@Override
	public List<TrendAnalysisDay> getTrendAnalysisDayByTrendDay(
			Date fromTrendDay, Date toTrendday) {
		return trendAnalysisDayDao.getTrendAnalysisDayByTrendDay(fromTrendDay,
				toTrendday);
	}

}
